<template>
  <div id="app">
    <!-- <keep-alive include="home">
      <router-view/>
    </keep-alive> -->

    <!-- 准备两个出口,被keepAlive包裹的出口,当路由中meta属性的keepAlive:true,显示,
    另一个消失-->
    <keep-alive >
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
      <router-view v-if="!$route.meta.keepAlive"/>

  </div>
</template>
